
#ifndef __GAME_MAIN_H__
#define __GAME_MAIN_H__

#include "common_types.h"

class GAME_SCENE;

struct GAME_STATE {
   int            current_time;
   float          elapsed_sec;

   bool           paused;
   bool           stopping;

   dsSTRING       sceneName;
   GAME_SCENE *   scene;

   GAME_STATE(void)
      : current_time(0)
      , elapsed_sec(0)
      , paused(false)
      , scene(NULL)
   {}
};

extern GAME_STATE gameState;
extern CONFIG * gameConfig;

bool game_initialize(void);
void game_loop(void);
void game_term(void);

#endif // __GAME_MAIN_H__